enum FirstInstallApp { yes, no }
const Map<FirstInstallApp, String> firstInstallAppValues = {
  FirstInstallApp.yes: "1",
  FirstInstallApp.no: "0"
};
extension FirstInstallAppExtension on FirstInstallApp {
  static FirstInstallApp fromString(String? value) {
    switch (value) {
      case "1":
        return FirstInstallApp.yes;
      case "0":
        return FirstInstallApp.no;
      default:
        return FirstInstallApp.yes; // 默认值
    }
  }
}
///appBar主题
enum ThemeEnum {
  dark,
  light
}
///从哪进入站位提示
enum PositionTipsSource {
  //财
  wealth,
  //文
  study,
  //缘
  relations
}
///从哪进入下盘界面的
enum CompassSource {
  roomWealth,
  stationWealth,
  health,
  roomStudy,
  stationStudy,
  roomRelations,
  stationRelations
}
const Map<CompassSource, String> compassSourceValues = {
  CompassSource.roomWealth: "1",// 房间财位
  CompassSource.stationWealth: "2",// 工位财位
  CompassSource.roomRelations: "3",// 房间桃花
  CompassSource.stationRelations: "4",// 工位桃花
  CompassSource.roomStudy: "5",// 房间文昌
  CompassSource.stationStudy: "6",// 工位文昌
  CompassSource.health: "7",// 康养
};

///相册使用场景 common:默认场景, avatar:用户头像,
/// registerAvatar:注册用户头像, feedback:意见与反馈
enum GalleryScene { common, avatar, registerAvatar, feedback }

//userAvatar:用户头像 feedback:意见反馈
enum UploadBucketType { userAvatar, feedback }

//七牛云上传多媒体类型
enum QiNiuMediaType { image, video }
const qiNiuMediaTypeValues = {
  QiNiuMediaType.image: '1',
  QiNiuMediaType.video: '2',
};
